{"ast":null,"code":"import _slicedToArray from\"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import React from'react';export var Title=function Title(){var countMessage=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var _React$useState=React.useState(\"\".concat(process.env.REACT_APP_NAME_PROJECT)),_React$useState2=_slicedToArray(_React$useState,1),title=_React$useState2[0];React.useEffect(function(){countMessage>0?document.title=\"(\".concat(countMessage,\") \")+title:document.title=title;},[countMessage,title]);};export default Title;","map":{"version":3,"names":["React","Title","countMessage","useState","process","env","REACT_APP_NAME_PROJECT","title","useEffect","document"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/utils/Title.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Title = (countMessage:Readonly<number> = 0): void => {\n    const [title] = React.useState<string>(`${process.env.REACT_APP_NAME_PROJECT}`);\n\n    React.useEffect(() => {\n        countMessage > 0?\n            document.title = `(${countMessage}) ` + title:\n            document.title = title;\n    }, [countMessage, title]);\n};\n\nexport default Title;"],"mappings":"8IAAA,MAAOA,MAAK,KAAM,OAAO,CAEzB,MAAO,IAAMC,MAAK,CAAG,QAARA,MAAK,EAAgD,IAA5CC,aAA6B,2DAAG,CAAC,CACnD,oBAAgBF,KAAK,CAACG,QAAQ,WAAYC,OAAO,CAACC,GAAG,CAACC,sBAAsB,EAAG,oDAAxEC,KAAK,qBAEZP,KAAK,CAACQ,SAAS,CAAC,UAAM,CAClBN,YAAY,CAAG,CAAC,CACZO,QAAQ,CAACF,KAAK,CAAG,WAAIL,YAAY,OAAOK,KAAK,CAC7CE,QAAQ,CAACF,KAAK,CAAGA,KAAK,CAC9B,CAAC,CAAE,CAACL,YAAY,CAAEK,KAAK,CAAC,CAAC,CAC7B,CAAC,CAED,cAAeN,MAAK"},"metadata":{},"sourceType":"module"}